# RDS/00008: OASIS Makefile Conventions

include rds00008.mk

#

EXEC = mailtool
OBJS = mailtool.o

CFLAGS += -Wall
CFLAGS += -I../include -I../../include

LFLAGS += -L../../mips-linux-uclibc-lib -L../CSMan/lib/ -lcsman

ifeq (${_AMIT_RT8651C_SPECIAL_SNAT},1)
	CFLAGS += -D_AMIT_RT8651C_SPECIAL_SNAT
endif

all: $(EXEC)
	$(STRIP) --remove-section=.note --remove-section=.comment $(EXEC) 

$(EXEC): $(OBJS)
	$(CC) -o ${EXEC} $(OBJS) $(LFLAGS)
%.o: %.c 
	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<

clean:
	-rm -f $(EXEC) *.gdb *.elf *.o *.uo *.us *.um
